package an_sim;

import java.util.ArrayList;
import java.util.List;

public class Node {

	private final int id;
	public static int idMaker;
	private Policy policy;
	private List<Integer> neighbours;
        Node(Policy p, List<Integer> n){
            id=idMaker++;
            policy=p;
            neighbours=new ArrayList<Integer>();
            neighbours.addAll(n);
        }
        public int getID(){ return id;}
        public Policy getPolicy() { return policy;}
        public void setPolicy(Policy p){ policy=p;}
        public List<Integer> getNeighbours(){return neighbours;}
        public void addNeighbours(int n){neighbours.add(n);}
        public void removeNeighbours(int n){neighbours.remove(n);}


}